User Guide on how to use the I2C communication applications.
More...
I2C Communication User Guide
Getting started
The I2C communication application is designed to work with two boards.
- Connect I2C clock, Data, GND between the two boards.
- Power on the I2C slave board first, download and run the I2C slave code, wait until the LED turns on
- Power on the I2C master board. download and run the I2C master code, the LED is toggled to indicate I2C communication.
- See LED changes on both I2C master and slave boards.
- Check I2C master serial terminal output and input the new data.
I2C Connections
Connection on TWR-K64F120M:
| Master | Slave |
| I2C1_SCL PTC10 Primary A75 | I2C1_SCL PTC10 Primary A75 |
| I2C1_SDA PTC11 Primary A60 | I2C1_SDA PTC11 Primary A60 |
| GND Primary A65 | GND Primary A65 |
Connection on FRDM-K64F120M:
| Master | Slave |
| I2C0_SCL PTE24 J2 Pin18 | I2C0_SCL PTE24 J2 Pin18 |
| I2C0_SDA PTE25 J2 Pin20 | I2C0_SDA PTE25 J2 Pin20 |
| GND J2 Pin14 | GND J2 Pin14 |